import requests

url = 'https://webapi.qingting.fm/api/mobile/rank'
headers = {
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1'
}
r = requests.get(url=url, headers=headers)

json_str = r.content.decode()
json_dict = r.json()
ranking_list = json_dict.get('rankinglist')
for temp in ranking_list:
    print(temp.get('title'), temp.get('playCount'))
